package com.aboo.es.dao;

import com.aboo.es.vo.Movie;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchCrudRepository;

import java.util.List;

public interface MovieDAO extends ElasticsearchCrudRepository<Movie, String> {

    List<Movie> findByNameLike(String keyword);

    Page<Movie> findByNameOrDescLike(String name, String desc, Pageable pageable);

}
